<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>获奖详情-云校通</title>
<jsp:include page="/WEB-INF/page/common/_header.jsp"></jsp:include>
<body ontouchstart>
	
	<div class="weui_tab tab-bottom">
		<div class="weui_tab_bd">
			<div class="weui-header bg-blue"> 
				<div class="weui-header-left"> <a href="<%=basePath %>${user.currUrl }/student/groupup/<c:if test="${user.currUrl == '/ls'}">${detail.studentId}</c:if>?<c:if test="${user.currUrl == '/xs'}">sid=${user.parent.studentId}</c:if>&to=award" class="icon icon-109 f-white">返回</a></div>
				<h1 class="weui-header-title">奖项详情</h1>
			</div>
	        <div class="weui_cells" style="margin: 0;font-size: 15px;">
	        	<div class="weui_cell" style="align-items: stretch;">
	        		<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/jingsaimingcheng@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
	        		<div class="weui_cell_hd">
						<p class="pr15">竞赛名称:<p>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>${detail.competitionName }</p>
					</div>
				</div>
				<c:if test="${null != detail.worksName && !detail.worksName.isEmpty()}">
					<div class="weui_cell">
						<div class="weui_cell_hd">
							<img src="<%=basePath %>/images/zuopinmingcheng@3x.png" style="width:18px;margin-right:5px;display:block">
						</div>
						<div class="weui_cell_hd">
							<p class="pr15">作品名称:</p>
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<p>${detail.worksName }</p>
						</div>
					</div>
				</c:if>
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/huojiangdengji@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
					<div class="weui_cell_hd">
						<p class="pr15">获奖级别:</p>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>${detail.awardGrade }${detail.awardLevel }</p>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/cansaixuesheng@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
					<div class="weui_cell_hd">
						<p class="pr15">参赛学生:</p>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p>${detail.studentName }</p>
					</div>
				</div>
				<div class="weui_cell">
					<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/zhidaojiaoshi@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
					<div class="weui_cell_hd">
						<p class="pr15">指导老师:</p>
					</div>
	                <div class="weui_cell_bd weui_cell_primary">
                		<p>${detail.guideTeacher }</p>
            		</div>
	            </div>
	            <div class="weui_cell">
	            	<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/huojiangshijian@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
					<div class="weui_cell_hd">
						<p class="pr15">获奖时间:</p>
					</div>
					<div class="weui_cell_bd weui_cell_primary">
						<p><fmt:formatDate value="${detail.awardTime}" pattern="yyyy-MM-dd" /></p>
					</div>
				</div>
	            <div class="weui_cell">
	            	<div class="weui_cell_hd">
						<img src="<%=basePath %>/images/shoujiangdanwei@3x.png" style="width:18px;margin-right:5px;display:block">
					</div>
					<div class="weui_cell_hd">
						<p class="pr15">授奖单位:</p>
					</div>
	                <div class="weui_cell_bd weui_cell_primary">
                		<p>${detail.awardCompany }</p>
            		</div>
	            </div>
				<c:if test="${not empty detail.attachList }">
					<div class="weui_cell xtbg-add-list-title">
						<div class="weui_cell_bd weui_cell_primary">
							<p class="f14">获奖照片(${detail.attachList.size()})</p>
						</div>
					</div>
					<div class="weui_cell">
						<ul class="img-click" style="list-style-type: none;margin: 5px 5px 5px 0;">
							<c:forEach var="item" items="${detail.attachList }">
								<li class="weui_uploader_file img-click" style="margin-right:0;margin-bottom:10px;position: relative;">
									<img onclick="imgClick(this)" src="${config.imgUrl }${item.attachmentUrl}"/>
								</li>
							</c:forEach>
						</ul>
					</div>
				</c:if>
			</div>
		</div>
	</div>
</body>
<jsp:include page="/WEB-INF/page/common/_footer.jsp"></jsp:include>
</html>